<template>
	<div class="footer">
		<div class="footer-nav">
			<template v-for="item in footer" v-if="item?.children">
				<div class="item">
					<div class="title">{{ item.name }}</div>
					<template v-for="child in item.children">
						<div class="text" @click="goArticle(child)">
							{{ child.name }}
						</div>
					</template>
				</div>
			</template>
		</div>
		<div class="pay-method">
			<p>{{ $t('h.A112') }}</p>
			<div class="image">
				<div class="item">
					<img src="@/assets/image/1.png" alt="">
					<p>Binance</p>
				</div>
				<div class="item">
					<img src="@/assets/image/payment/Huobi.png" alt="">
					<p>Huobi</p>
				</div>
				<div class="item">
					<img src="@/assets/image/payment/OKX.png" alt="">
					<p>OKX</p>
				</div>
				<div class="item">
					<img src="@/assets/image/payment/Kraken.png" alt="">
					<p>Kraken</p>
				</div>
				<div class="item">
					<img src="@/assets/image/payment/coinbase.png" alt="">
					<p>coinbase</p>
				</div>
				<div class="item">
					<img src="@/assets/image/payment/MetaMask.png" alt="">
					<p>MetaMask</p>
				</div>
				<div class="item">
					<img src="@/assets/image/payment/KuCoin.png" alt="">
					<p>KuCoin</p>
				</div>
				<div class="item">
					<img src="@/assets/image/payment/Bitfinex.png" alt="">
					<p>Bitfinex</p>
				</div>
			</div>
		</div>
		<div class="sm-wholesale-shop">
			<p class="title"></p>
			<div class="title-text">{{ $t('h.A113') }}</div>
			<div class="content-image">
				<a href="https://www.smsupermalls.com/" target="_blank">
					<img src="@/assets/image/2.png" alt="">
				</a>

				<a href="https://www.habitat.co.uk/" target="_blank">
					<img src="@/assets/image/3.png" alt="">
				</a>
				<a href="https://www.nectar.com/" target="_blank">
					<img src="@/assets/image/4.png" alt="">
				</a>
				<a href="https://www.zellepay.com/" target="_blank">
					<img src="@/assets/image/5.png" alt="">
				</a>
				<a href="https://crypto.com/" target="_blank">
					<img src="@/assets/image/6.png" alt="">
				</a>

				<a href="https://wise.com/" target="_blank">
					<img src="@/assets/image/logo7.3821d38a.png" alt="">
				</a>
			</div>
		</div>
		<div class="sm-wholesale-shop-bottom">
			<p class="title">© {{ appName }}{{ $t('h.A114',{year:new Date().getFullYear()}) }}</p>
			<p class="content">
				<!--        Limited 作为信贷经纪人 (713206) 获得金融行为监管局的授权和监管，并专门与贷方 Home Retail Group Card Services Limited 合作身份进行交易， SM-wholesaleShop Financial Services 获得金融行为监管局的授权和监管以提供信贷(716148)。Home Retail Group Card Services Limited 注册于英国 (04007072)，地址为 Avebury, 489-499 Avebury Boulevard, Milton Keynes, United Kingdom。MK9 2NW。-->
			</p>
		</div>
	</div>
</template>

<script>
	import {
		getItem
	} from '../../plugins';
	import {
		mapGetters
	} from 'vuex';

	export default {
		data() {
			return {
				website: ''
			};
		},
		computed: {
			...mapGetters(['appName', 'footer'])
		},
		methods: {
			goArticle(item) {
				this.$router.push({
					path: '/page/' + item.id
				});
			},
			goRouter(item, status) {
				this.$router.push({
					path: item,
					query: {
						status
					}
				});
			}
		},
		mounted() {
			this.website = getItem('website');
		}
	};
</script>

<style scoped lang="scss">
	.footer {
		margin-top: 20px;
		width: 100%;
		background: #212121;
		overflow: hidden;
		padding: 3%;
		box-sizing: border-box;
		margin-bottom: 60px;

		.top {
			width: 100%;

			img {
				height: 30px;
			}
		}

		.footer-nav {
			width: 100%;
			//display: flex;
			padding: 0 5%;
			box-sizing: border-box;
			//flex-wrap: wrap;
			//justify-content: space-between;
			margin-top: 20px;
			column-count: 2;

			.item {
				width: 150px;
				//box-sizing: border-box;
				//gap: 10px;
				break-inside: avoid;

				.title {
					font-weight: 700;
					font-size: 16px;
					color: #002FFF;
					word-wrap: break-word;
					height: 45px;
				}

				.text {
					font-size: 12px;
					height: 45px;
					color: #fff;
				}
			}

			.footer-left {
				width: 40%;
				min-height: 150px;

				.title {
					font-weight: 700;
					font-size: 16px;
					color: #002FFF;
					word-wrap: break-word;
					height: 45px;
				}

				.text {
					font-size: 12px;
					height: 45px;
					color: #fff;
				}
			}
		}

		.pay-method {
			width: 100%;
			min-height: 100px;
			border-top: 1px solid #3f3f3f;
			border-bottom: 1px solid #3f3f3f;

			p {
				height: 40px;
				line-height: 40px;
				text-align: center;
				font-size: 12px;
				color: #fff;
			}

			.image {
				width: 100%;
				min-height: 100px;
				//background: red;
				padding: 20px 10%;
				box-sizing: border-box;
				display: flex;
				justify-content: space-around;
				flex-wrap: wrap;

				.item {
					width: 60px;
					height: 60px;
					display: flex;
					justify-content: center;
					flex-wrap: wrap;
					align-items: center;

					img {
						width: 30px;
						height: 30px;
					}

					p {
						margin-top: -8px;
						width: 100%;
						font-size: 10px;
						color: #ababab;
					}
				}
			}
		}

		.sm-wholesale-shop {
			width: 100%;
			min-height: 100px;
			border-bottom: 1px solid #3f3f3f;
			padding: 20px 0;
			box-sizing: border-box;

			.title {
				font-size: 12px;
				color: #fff;
				text-align: center;
			}

			.title-text {
				margin-top: 15px;
				font-size: 12px;
				color: #fff;
				padding: 0 3%;
				box-sizing: border-box;
			}

			.content-image {
				height: 50px;
				width: 100%;
				margin-top: 40px;
				display: flex;
				justify-content: center;
				flex-wrap: wrap;
				box-sizing: border-box;
				padding: 0 5%;
				a{
					display: inherit;
					img {
						margin-left: 20px;
						height: 15px;
					}
				}

			}

		}

		.sm-wholesale-shop-bottom {
			width: 100%;
			min-height: 100px;
			padding: 20px 0;
			box-sizing: border-box;

			.title {
				color: #3f3f3f;
				font-size: 12px;
				text-align: center;
			}

			.content {
				margin-top: 20px;
				color: #3f3f3f;
				font-size: 10px;
				text-align: center;
			}
		}
	}
</style>
